/**
 * com.monte.dao.CommandContext.java
 * create by FengMy from 2013
 */
package com.monte.persistence;

import javax.persistence.EntityManager;

import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.springframework.jdbc.core.JdbcTemplate;

/**
 * @描述:命令上下文
 * @author FengMy
 * @since 2013-3-4
 */
public class CommandContext {
	 /**
	 * MyBatis sqlSession
	 */
	private SqlSession sqlSession;
	
	/**
	 * MyBatis sqlSessionFactory
	 */
	private SqlSessionFactory sqlSessionFactory;
	
	/**
	 * MyBatis jdbcTemplate
	 */
	private JdbcTemplate jdbcTemplate;
	
	/**
	 * JPA entityManager
	 */
	private EntityManager entityManager;

	public SqlSession getSqlSession() {
		return sqlSession;
	}

	public void setSqlSession(SqlSession sqlSession) {
		this.sqlSession = sqlSession;
	}

	public SqlSessionFactory getSqlSessionFactory() {
		return sqlSessionFactory;
	}

	public void setSqlSessionFactory(SqlSessionFactory sqlSessionFactory) {
		this.sqlSessionFactory = sqlSessionFactory;
	}

	public JdbcTemplate getJdbcTemplate() {
		return jdbcTemplate;
	}

	public void setJdbcTemplate(JdbcTemplate jdbcTemplate) {
		this.jdbcTemplate = jdbcTemplate;
	}

	public EntityManager getEntityManager() {
		return entityManager;
	}

	public void setEntityManager(EntityManager entityManager) {
		this.entityManager = entityManager;
	}
}
